package com.ruitu.router_module.bean.product;

import java.io.Serializable;
import java.util.List;

//商品规格
public class Spec implements Serializable {
    private String id;//规格id
    private String goodsFeatureName;//名称
    private String goodsTypeId;//商品分类id
    private String goodsFeatureTypeId;
    private List<SpecDetail> goodsFeatureVals;

    private boolean isChoose = false;//自定义字段,是否已选中

    //具体规格的值等属性
    public static class SpecDetail implements Serializable {
        private String id;//: "63995095601427596",
        private String goodsFeatureName;//: "黄色",
        private String goodsFeatureId;//: "4345186931807663775",
        private String typeValue;//: null,
        private String nameId;//: null,
        private String modelName;//: null,
        private String modelStock;//: null,
        private String modelPrice;//: null,
        private String collagePrice;//: null

        private boolean isSelected = false;//自定义字段,是否已选中
        private boolean isAble = true;//自定义字段,是否可用


        public boolean isSelected() {
            return isSelected;
        }

        public boolean isAble() {
            return isAble;
        }

        public void setAble(boolean able) {
            isAble = able;
        }

        public void setSelected(boolean selected) {
            isSelected = selected;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getGoodsFeatureName() {
            return goodsFeatureName;
        }

        public void setGoodsFeatureName(String goodsFeatureName) {
            this.goodsFeatureName = goodsFeatureName;
        }

        public String getGoodsFeatureId() {
            return goodsFeatureId;
        }

        public void setGoodsFeatureId(String goodsFeatureId) {
            this.goodsFeatureId = goodsFeatureId;
        }

        public String getTypeValue() {
            return typeValue;
        }

        public void setTypeValue(String typeValue) {
            this.typeValue = typeValue;
        }

        public String getNameId() {
            return nameId;
        }

        public void setNameId(String nameId) {
            this.nameId = nameId;
        }

        public String getModelName() {
            return modelName;
        }

        public void setModelName(String modelName) {
            this.modelName = modelName;
        }

        public String getModelStock() {
            return modelStock;
        }

        public void setModelStock(String modelStock) {
            this.modelStock = modelStock;
        }

        public String getModelPrice() {
            return modelPrice;
        }

        public void setModelPrice(String modelPrice) {
            this.modelPrice = modelPrice;
        }

        public String getCollagePrice() {
            return collagePrice;
        }

        public void setCollagePrice(String collagePrice) {
            this.collagePrice = collagePrice;
        }
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGoodsFeatureName() {
        return goodsFeatureName;
    }

    public void setGoodsFeatureName(String goodsFeatureName) {
        this.goodsFeatureName = goodsFeatureName;
    }

    public String getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(String goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }

    public String getGoodsFeatureTypeId() {
        return goodsFeatureTypeId;
    }

    public void setGoodsFeatureTypeId(String goodsFeatureTypeId) {
        this.goodsFeatureTypeId = goodsFeatureTypeId;
    }

    public List<SpecDetail> getGoodsFeatureVals() {
        return goodsFeatureVals;
    }

    public void setGoodsFeatureVals(List<SpecDetail> goodsFeatureVals) {
        this.goodsFeatureVals = goodsFeatureVals;
    }

    public boolean isChoose() {
        return isChoose;
    }

    public void setChoose(boolean choose) {
        isChoose = choose;
    }
}
